from wsgiref.simple_server import make_server
import os
def application(environ, start_response):
    
    for k in environ:
        print('%s : %s' % (k,environ[k]))
    start_response('200 OK', [('Content-Type', 'text/html')])
    with open('sumszw.html','rb') as html:
        return html.readlines()

httpd=make_server('',9898,application)
print('http 服务：9898 已启动')
httpd.serve_forever()
